home *** CD-ROM | disk | FTP | other *** search
/ s-gikan2.maizuru-ct.ac.jp / s-gikan2.maizuru-ct.ac.jp.zip / s-gikan2.maizuru-ct.ac.jp / pub / ncvc352_install.exe / {app} / scripts / remove_sequence_number.pl < prev    next >
Perl Script  |  2004-03-30  |  302b  |  17 lines

  1. #! /usr/bin/perl
  2.  
  3. #  NCâfü[â^é╠âVü[âPâôâXö╘ìåé≡ìφÅ£é╖éΘâXâNâèâvâg  #
  4. #  ex.N0001X0Y0 -> X0Y0                          #
  5.  
  6. $pre_file= $ARGV[0];
  7. $out_file= $ARGV[1];
  8. open(IN,$pre_file);
  9. open(OUT,">$out_file");
  10.  
  11. while(<IN>){
  12.     if(/^N[\d\s]+/){ $_= $'; }
  13.     print OUT;
  14. }
  15. close(OUT);
  16. close(IN);
  17.